namespace Model.Pizza;

public class Pizza
{
    public int Id { get; set; }
    public string? Name { get; set; }
    public float Price { get; set; }
    // public bool HasOrNot { get; set; }

    public static List<Pizza> pizzas = new()
    {
        new Pizza { Id = 123, Name = "abc", Price = 12 },
        new Pizza { Id = 456, Name = "def", Price = 19 },
        new Pizza { Id = 789, Name = "ghi", Price = 41 }
    };

    public static Pizza GetByID(int id)
    {
        return pizzas.SingleOrDefault(x => x.Id == id);
    }
}
